package cn.edu.hdu.instantMessage;

public class AbstractPhotoInstantMessage extends AbstractInstantMessage {
    @Override
	public VideoInstantMessage getVideoInstant_mess(String name) {
		///
		return null;
	}
	@Override
	public PhotoInstantMessage getPhotoInstant_mess(String name) {
		System.out.println("This is PTF");
		if(name.equalsIgnoreCase("Photo1")) {
			System.out.println("Photo1 is ok");
			return new Photo1();
		}else if(name.equalsIgnoreCase("Photo2")) {
			System.out.println("Photo2 is ok");
			return new Photo2();
		}
		else {
			System.out.println("No true Video");
			return null;
		}

	}
    
}
